package site.wetsion.galio.sdk.handler;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

/**
 * 用于URL无权限拒绝访问以及异常情况的处理
 *
 * @author wetsion
 * @version 1.0
 * @CLassName UrlDenyHandler
 * @date 2019/3/20 2:27 PM
 */
public interface UrlDenyHandler {

    /** url无法通过 **/
    void onDenied(ServletRequest request, ServletResponse response)
            throws IOException, ServletException;
}
